import logging
from flask import session,current_app
from . import index_bp
from info import redis_store
# from info import models


@index_bp.route('/')
def hello_world():
    redis_store.set("name","laowang")
    session["name"] = "curry"
    logging.debug("")
    logging.info("")
    logging.warning("")
    logging.error("")
    logging.critical("")

    current_app.logger.debug("flask封装的logger日志")
    return 'Hello World!  666 itcast'